import request from '@/utils/http.js';


// 获取默认地址
export function userDefaultAddress(data){
	return request.post("/v1/userAddress/userDefaultAddress",data)
}
//支付
export function weixinPay(data){
	return request.post("/v1/orderPay/wxPay",data)
}
//立即购买校验库存
export function checkGoodsStatus(data){
	return request.post("/v1/orderGoods/checkGoodsStatus",data)
}
//购物车和立即购买的下个页面接口
export function payOrderList(data){
	return request.post("/xcx/shopCart/payOrderListXgj",data)
}
//
export function addOrder(data){
	return request.post("/xcx/cartOrder/addOrderXgj",data)
}
//
export function payOrder(data){
	return request.post("/xcx/cartOrder/payOrder",data)
}
//白名单用户支付订单
export function payWhiteOrder(data){
	return request.post("/xcx/cartOrder/payWhiteOrder",data)
}

//获取开票信息和客户信息
export function getCustomerInvoice(data){
	return request.post("/xcx/cartOrder/getCustomerInvoice",data)
}
//使用优惠券
export function userCoupon(data){
	return request.post("/xcx/xgj/index/userCoupon",data)
}